package shizhan.service.impl;

import shizhan.pojo.Log;
import shizhan.service.LogService;

public class LogServiceImpl implements LogService {
    @Log
    public void testMethod() {
        try {
            Thread.sleep(100); // 模拟方法执行时间
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("Executing testMethod1");
    }

    @Log
    public void testMethod2() {
        try {
            Thread.sleep(150); // 模拟方法执行时间
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("Executing testMethod2");

    }

    @Override
    public void testMethod3() {
        try {
            Thread.sleep(50); // 模拟方法执行时间
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("Executing testMethod3");
    }
}
